package thread.homework.problem1method2;

public class PrintNum implements Runnable {
    private Print print;

    public PrintNum(Print print) {
        this.print = print;
    }

    @Override
    public void run() {
        for (int i = 1; i < 27; i++) {
            print.printNum(i);
        }
    }
}
